package com.linzp.bishe.excel;

import com.alibaba.excel.annotation.ExcelProperty;
import com.linzp.bishe.entity.Patent;
import lombok.Data;

/**
 * @ClassName PatentExcel
 * @Description 描述
 * @Author LinZePeng
 * @Date 2022/2/28 15:09
 * @Version 1.0
 */
@Data
public class PatentExcel {
	@ExcelProperty("专利名称")
	private String patentName;

	@ExcelProperty("申请号")
	private String application;

	@ExcelProperty("专利类型")
	private String patentType;

	@ExcelProperty("专利状态")
	private String patentStatus;

	public Patent getPatent(){
		return new Patent()
				.setPatentName(this.patentName)
				.setApplication(this.application)
				.setPatentType(this.patentType)
				.setPatentStatus(this.patentStatus);
	}
}
